<?php
// +----------------------------------------------------------------------
// | author: thinkphp
// +----------------------------------------------------------------------

namespace app\api\controller;


use app\api\lists\line\LineLists;
use app\api\logic\LineLogic;

/**
 * 管理
 * Class LineController
 * @package app\api\controller
 */
class LineController extends BaseApiController
{

    public array $notNeedLogin = ['lists', 'detail'];


    /**
     * @notes 列表
     * @return \think\response\Json
     */
    public function lists()
    {
        return $this->dataLists(new LineLists());
    }


    /**
     * @notes 详情
     * @return \think\response\Json
     */
    public function detail()
    {
        $id = $this->request->get('id/d');
        $result = LineLogic::detail($id);
        return $this->data($result);
    }


}